package com.redoor.app.stake.basicdata.dao;

import com.redoor.app.stake.basicdata.model.SyncOrganization;
import com.redoor.app.stake.basicdata.model.UsrDistrict;
import com.redoor.app.stake.basicdata.model.controllerModel.SyncOrganizationCriteria;
import com.redoornetwork.framework.mybatis.mapper.Mapper;

import java.util.List;

public interface SyncOrganizationMapper extends Mapper<SyncOrganization> {

    List findOrganizationByCondition(SyncOrganizationCriteria paramas);


    int deleteOrganization(SyncOrganizationCriteria paramas);


    List<UsrDistrict> listAllDistrict();

    /**
     * 根据唯一索引orgNo进行判断有则修改,无则新增
     * @Author zhangYiHang
     * @Date 2018/4/10 15:53
     * @Param
     */
    int inserOrUpdateByOrgNoToSyncOrganization(SyncOrganization syncOrganization);
}